<div class="recommended popular_destinations">
    <h4 class="ellipsis"><?= $title ?></h4>

    <? $cnt = count($popular); ?>
    <? for ($i = 0; $i < $cnt; $i++): ?>
            <? if ($i == 4) break; ?>
            <?
            $href = lang_url('search?dest_hot=' . $popular[$i]->name . '&preview=1')
            ?>
            <? $thumbnail = HOST_URL_HOTELS . 'gallery/destinations/' . $popular[$i]->photo_path . '/thumb_130x130/' . $popular[$i]->photo_name; ?>

            <a class="clearfix" href="<?= $href ?>">


                <img src="<?= $thumbnail ?>" alt="<?= $popular[$i]->name ?>" width="90">
                <div>

                    <h4 class="ellipsis"><?= $popular[$i]->name ?></h4>
                    <p class="ellipsis">
                        <em><?= lang('nav.hotels'); ?> - <?= $popular[$i]->hotels_count; ?></em>, 
                        <em><?= lang('accommodations'); ?> - <?= ($popular[$i]->accommodations_count + $popular[$i]->hostels_count + $popular[$i]->authentic_count); ?></em>
                    </p>
                </div>
            </a>
        <? endfor; ?>
</div>